<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-systemConfig-edit" th:object="${systemConfig}">
            <input id="syscId" name="syscId" th:field="*{syscId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">公司名称：</label>
				<div class="col-sm-8">
					<input id="syscName" name="syscName" th:field="*{syscName}" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-3 control-label">联系方式：</label>
				<div class="col-sm-8">
					<input id="syscContact" name="syscContact" th:field="*{syscContact}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">地址：</label>
				<div class="col-sm-8">
					<input id="syscAddress" name="syscAddress" th:field="*{syscAddress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">网址：</label>
				<div class="col-sm-8">
					<input id="syscUrl" name="syscUrl" th:field="*{syscUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮箱：</label>
				<div class="col-sm-8">
					<input id="syscMail" name="syscMail" th:field="*{syscMail}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">服务协议：</label>
				<div class="col-sm-8">
					<input id="syscProtocol" name="syscProtocol" th:field="*{syscProtocol}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">用户指南：</label>
				<div class="col-sm-8">
					<input id="syscGuide" name="syscGuide" th:field="*{syscGuide}" class="form-control" type="text">
				</div>
			</div>

		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "gxgw_modules/systemConfig";
		$("#form-systemConfig-edit").validate({
			rules:{
				syscName:{
					required:true
				},
				syscContact:{
					required:true,
					digits:true
				},
				syscAddress:{
					required:true
				},
				syscUrl:{
					required:true
				},
				syscMail:{
					required:true
				},
				syscProtocol:{
					required:true
				},
				syscGuide:{
					required:true
				}
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-systemConfig-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
